home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 108 / MacAddict108.iso / Software / Internet & Communication / WordPress 1.5.1.dmg / wordpress / wp-admin / options-misc.php < prev    next >
Encoding:
PHP Script  |  2005-02-14  |  3.0 KB  |  72 lines

  1. <?php
  2. require_once('admin.php');
  3.  
  4. $title = __('Miscellaneous Options');
  5. $parent_file = 'options-general.php';
  6.  
  7. include('admin-header.php');
  8.  
  9. ?>
  10.  
  11. <div class="wrap"> 
  12. <h2><?php _e('Miscellaneous Options') ?></h2> 
  13. <form name="miscoptions" method="post" action="options.php"> 
  14.     <input type="hidden" name="action" value="update" />
  15.     <input type="hidden" name="page_options" value="'hack_file','use_fileupload','fileupload_realpath','fileupload_url','fileupload_allowedtypes','fileupload_maxk','fileupload_maxk','fileupload_minlevel','use_geo_positions','use_linksupdate'" /> 
  16.     <fieldset class="options">
  17.     <legend>
  18.     <input name="use_fileupload" type="checkbox" id="use_fileupload" value="1" <?php checked('1', get_settings('use_fileupload')); ?> />
  19.     <label for="use_fileupload"><?php _e('Allow File Uploads') ?></label></legend>
  20.     <table width="100%" cellspacing="2" cellpadding="5" class="editform"> 
  21.     <tr> 
  22.     <th width="33%" valign="top" scope="row"><?php _e('Destination directory:') ?> </th> 
  23.     <td>
  24.     <input name="fileupload_realpath" type="text" id="fileupload_realpath" value="<?php form_option('fileupload_realpath'); ?>" size="50" /><br />
  25.     <?php printf(__('Recommended: <code>%s</code>'), ABSPATH . 'wp-content') ?>
  26.     
  27.     </td> 
  28.     </tr> 
  29.     <tr>
  30.     <th valign="top" scope="row"><?php _e('URI of this directory:') ?> </th>
  31.     <td>          
  32.     <input name="fileupload_url" type="text" id="fileupload_url" value="<?php form_option('fileupload_url'); ?>" size="50" /><br />
  33.     <?php printf(__('Recommended: <code>%s</code>'), get_settings('siteurl') . '/wp-content') ?>
  34.     </td>
  35.     </tr>
  36.     <tr>
  37.     <th scope="row"><?php _e('Maximum size:') ?> </th>
  38.     <td><input name="fileupload_maxk" type="text" id="fileupload_maxk" value="<?php form_option('fileupload_maxk'); ?>" size="4" /> 
  39.     <?php _e('Kilobytes (KB)') ?></td>
  40.     </tr>
  41.     <tr>
  42.     <th valign="top" scope="row"><?php _e('Allowed file extensions:') ?></th>
  43.     <td><input name="fileupload_allowedtypes" type="text" id="fileupload_allowedtypes" value="<?php form_option('fileupload_allowedtypes'); ?>" size="40" />
  44.     <br />
  45.     <?php _e('Recommended: <code>jpg jpeg png gif</code>') ?></td>
  46.     </tr>
  47.     <tr>
  48.     <th scope="row"><?php _e('Minimum level to upload:') ?></th>
  49.     <td><select name="fileupload_minlevel" id="fileupload_minlevel">
  50.     <?php
  51.     for ($i = 1; $i < 11; $i++) {
  52.     if ($i == get_settings('fileupload_minlevel')) $selected = " selected='selected'";
  53.     else $selected = '';
  54.     echo "\n\t<option value='$i' $selected>$i</option>";
  55.     }
  56.     ?>
  57.     </select></td>
  58.     </tr>
  59.     </table> 
  60.     </fieldset>
  61.     <p><input name="use_linksupdate" type="checkbox" id="use_linksupdate" value="1" <?php checked('1', get_settings('use_linksupdate')); ?> />
  62.     <label for="use_linksupdate"><?php _e('Track Links’ Update Times') ?></label></p>
  63.     <p>
  64.     <label><input type="checkbox" name="hack_file" value="1" <?php checked('1', get_settings('hack_file')); ?> /> <?php _e('Use legacy <code>my-hacks.php</code> file support') ?></label>
  65.     </p>
  66.     <p class="submit">
  67.         <input type="submit" name="Submit" value="<?php _e('Update Options') ?> »" />
  68.     </p>
  69. </form> 
  70. </div>
  71.  
  72. <?php include('./admin-footer.php'); ?>